const mongoose = require('mongoose');
const Schema = mongoose.Schema;

// 用户-数据模型
const UserSchema = new Schema({
    name:{
        type: String,
        required: true
    },
    email:{
        type: String,
        required: true
    },
    password: {
        type: String,
        required: true
    },
    date:{
        type: Date,
        default: Date.now
    }
})

module.exports = User = mongoose.model('users',UserSchema)